package study;

import java.util.Scanner;
public class test1 {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个数字");
        int i = sc.nextInt();
        System.out.println("再输入一个数");
        int j = sc.nextInt();
        boolean result = ( (i == 6) || (j == 6) || ( ( (i + j) % 6 == 0 ) && !(i == 0) && !(j == 0) ) );
        System.out.println(result);
    }
}
